//
//  HomeMessageVC.m
//  Ginix
//
//  Created by 冯志强 on 2025/2/25.
//

#import "HomeMessageVC.h"
#import "HomeMessageCell.h"
@interface HomeMessageVC ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView * listtView;

@end

@implementation HomeMessageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setSubViewLayout];
}

-(void)setSubViewLayout{
    
    self.title = @"消息通知";
    [self.view addSubview:self.listtView];
    [_listtView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(NavHeight + 10 * FMScaleX, 0, 20 * FMScaleX, 0));
    }];
    
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return 0 ;
    
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

    
    return 180 * FMScaleX;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    HomeMessageCell * cell = [tableView dequeueReusableCellWithIdentifier:@"HomeMessageCell"];
    return cell;
    
}


-(UITableView *)listtView{
    
    if (!_listtView) {
        _listtView = [[UITableView alloc]init];
        _listtView.delegate = self;
        _listtView.dataSource = self;
        _listtView.showsVerticalScrollIndicator = NO;
        _listtView.showsHorizontalScrollIndicator = NO;
        _listtView.backgroundColor = UIColor.clearColor;
        _listtView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _listtView.bounces = NO;
        [_listtView registerClass:[HomeMessageCell class] forCellReuseIdentifier:@"HomeMessageCell"];
    }
    return _listtView;
}
@end
